package com.zyd.blog.persistence.mapper;

import com.zyd.blog.persistence.beans.Center;
import com.zyd.blog.persistence.beans.CenterNew;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;
@Repository
public interface CenterMapper extends BaseMapper<Center> {
    Integer centerCount(@Param(value = "id")String id,@Param(value = "userId")String userId);
    Integer update(@Param(value = "userId") String userId,@Param(value = "articleId") String articleId, @Param(value = "state") String state);
    Integer cancel(@Param(value = "userId") String userId,@Param(value = "articleId") String articleId, @Param(value = "state") String state);
    Integer deleteCenter(String id);
}
